package com.basswold.nasaesa.client;
public class ConstructionHabitatModule extends ConstructionModule {

	/**
	 * Link to a connector module.
	 */
	private ConstructionConnectorModule moduleConnection;
	
	/**
	 * Constructor
	 * @param id Identification number of module.
	 */
	public ConstructionHabitatModule(int id, String cond, String orient) {
		super(id, cond, orient);
	}
	
	/**
	 * Sets the module connection to null.
	 */
	public void resetConnections() {
		moduleConnection = null;
	}
	
	/**
	 * Accessor for moduleConnection.
	 * @return The connector module this this habitat module is
	 *  	connected to.
	 */
	public ConstructionConnectorModule getConnection() {
		return moduleConnection;
	}
	
	/**
	 * Mutator for module Connection.
	 * @param cMod The connector module that this habitat module is 
	 * 		connected to.
	 */
	public void setConnection(ConstructionConnectorModule cMod) {
		moduleConnection = cMod;
	}
}
